$OpenBSD: patch-kWnn_jlib_Imakefile,v 1.4 2017/04/29 14:31:40 espie Exp $
--- kWnn/jlib/Imakefile.orig
+++ kWnn/jlib/Imakefile
@@ -10,7 +10,9 @@ XCOMM
 LINKS = getopt.c jl.c js.c wnnerrmsg.c
     JLIBDEFINES = -DWRITE_CHECK
        INCLUDES = -I$(KWNNINCLUDESRC) -I$(TOP)
-        DEFINES = $(KWNNDEFINES) $(KWNNLANGDEF) $(JLIBDEFINES)
+        DEFINES = $(KWNNDEFINES) $(KWNNLANGDEF) $(CWNNLANGDEF) $(JLIBDEFINES)
+XCOMM						# for Mule
+XCOMM						#   -- S. Taoka
    INSTALLFLAGS = $(INSTBINFLAGS)
        LINTLIBS = 
 
@@ -20,14 +22,21 @@ SRC1= js.c \
 OBJ1= js.o \
 	wnnerrmsg.o \
 	jl.o
-SRC2= getopt.c
-OBJ2= getopt.o
 SRC3= $(KWNNETCSRC)/msg.c
 OBJ3= msg.o
 SRC4= $(KWNNETCSRC)/strings.c
 OBJ4= strings.o
 SRC5= $(KWNNETCSRC)/bcopy.c
 OBJ5= bcopy.o
+SRC6= $(KWNNETCSRC)/yincoding.c
+XCOMM for Mule
+XCOMM   -- S. Taoka
+OBJ6= yincoding.o
+SRC7= $(KWNNETCSRC)/py_table.c
+OBJ7= py_table.o
+SRC8= $(KWNNETCSRC)/zy_table.c
+OBJ8= zy_table.o
+
 LOCAL_RKSRCS= $(KWNNROMKANSRC)/rk_bltinfn.c \
 	$(KWNNROMKANSRC)/rk_main.c \
 	$(KWNNROMKANSRC)/rk_modread.c \
@@ -40,8 +49,8 @@ LOCAL_RKOBJS= $(KWNNROMKANSRC)/rk_bltinfn.o \
 	$(KWNNROMKANSRC)/rk_read.o \
 	$(KWNNROMKANSRC)/rk_vars.o
 
-LOCAL_ETCSRCS = $(SRC4) $(SRC5)
-LOCAL_ETCOBJS = $(OBJ4) $(OBJ5)
+LOCAL_ETCSRCS = $(SRC4) $(SRC5) $(SRC6) $(SRC7) $(SRC8)
+LOCAL_ETCOBJS = $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8)
 SRCS= $(SRC1) $(SRC3) $(LOCAL_ETCSRCS)
 OBJS= $(OBJ1) $(OBJ3) $(LOCAL_ETCOBJS) $(LOCAL_RKOBJS)
 
@@ -55,16 +64,11 @@ LinkSourceFile(jl.c,$(WNNJLIBSRC))
 LinkSourceFile(js.c,$(WNNJLIBSRC))
 LinkSourceFile(wnnerrmsg.c,$(WNNJLIBSRC))
 
-NormalLibraryTarget(getopt,$(OBJ2))
-LintLibraryTarget(getopt,$(SRC2))
-
 js.o : js.c \
 	$(KWNNETCSRC)/bdic.c \
 	$(KWNNETCSRC)/pwd.c \
 	$(KWNNETCSRC)/gethinsi.c
 
-NormalLintTarget($(SRC2))
-
 NormalLibraryTarget(kwnn,$(OBJS))
 LintLibraryTarget(kwnn,$(SRCS))
 
@@ -80,6 +84,10 @@ InstallLibrary(kwnn_p,$(WNNLIBDIR))
 WnnSpecialObjectRule($(OBJ3),$(SRC3),$(KWNNETCSRC),)
 WnnSpecialObjectRule($(OBJ4),$(SRC4),$(KWNNETCSRC),)
 WnnSpecialObjectRule($(OBJ5),$(SRC5),$(KWNNETCSRC),)
+WnnSpecialObjectRule($(OBJ6),$(SRC6),$(KWNNETCSRC),)
+WnnSpecialObjectRule($(OBJ7),$(SRC7),$(KWNNETCSRC),)
+WnnSpecialObjectRule($(OBJ8),$(SRC8),$(KWNNETCSRC),)
+
 
 $(LOCAL_RKOBJS) : $(LOCAL_RKSRCS)
 	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
